<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>删除作业信息</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<form id="form" action="${path}/proRecord/deleteOne.json" method="post">
<div class="form" style="padding:10px 30px;font-size:14px;">
	<div class="group">
		<div class="item">为什么删除？</div>
	</div>
	<div class="group">
		<div class="item">
			<input type="radio" id="deleteType1" name="deleteType" value="1" checked="checked" /><label for="deleteType1" class="label">清理旧数据</label>
		</div>
	</div>
	<div class="group">
		<div class="item" style="padding-left:20px;">
			直接删除作业信息数据。
		</div>
	</div>
	
	<div class="group">
		<div class="item">
			<input type="radio" id="deleteType2" name="deleteType" value="2" /><label for="deleteType2" class="label">删除错误数据</label>
		</div>
	</div>
	<div class="group">
		<div class="item" style="padding-left:20px;">
			删除错误数据时，如果使用了农资将执行农资回收操作。
		</div>
	</div>
	
	<div class="buttons" style="width:260px;">
		<button class="highlight" id="submit1" type="button">确定</button>
		<button type="button" id="cancel1">取消</button>
		<input type="hidden" id="recordid" name="recordid" value="${proRecord.recordid }" />
	</div>
</div>
</form>
<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function() {
	$("#form").ligerForm({inputWidth: 300});
	
	$("#form").ajaxForm(function(data){
		UiUtil.isSuccess(data, "删除作业信息成功.", function(){
			UiUtil.closeForm(true);
		});
	});
	
	$("#submit1").click(function(){
		UiUtil.lockButton('submit1');
		$("#form").submit();
	});

	$("#cancel1").click(function(){
		UiUtil.closeForm();
	});
	
});
</script>
</body>
</html>